<template>
  <RouterView />
</template>

<script setup>
import { onMounted, onUnmounted } from "vue";

// 监听窗口大小变化
const handleResize = () => {
  window.location.reload();
};

onMounted(() => {
  window.addEventListener("resize", handleResize);
});

onUnmounted(() => {
  window.removeEventListener("resize", handleResize);
});
</script>

<style scoped></style>
